jQuery(document)
		.ready(
				function() {
						
						//set the we are doing something image in the ajaxLoaderSources div
						if ($('#ajaxLoaderSources').val() == '') {
							$("#ajaxLoaderSources").html(
									'<img src=\"' + 'http://www.dasregistry.org/img/ajax-loader.gif' + '\">');
						}
						
						var regSourcesUrl = 'http://localhost:8080/regrest/das/sources';//'http://www.dasregistry.org/das/sources' default is for active sources can change to sources/inactive using this url
						//if(showInactive)regSourcesUrl=
						
						var returnUrl="http://localhost:8080/regrestclient/das/sources";		
						
						var writeSourcesObject = new WriteJsonSources(regSourcesUrl, returnUrl);
						var regReq=writeSourcesObject.getRegistryUrlFromPath();//get what the request to the registy should be given the current url and params
						
						
						jQuery.getJSON(regReq, function(sources) {
							if(sources.source.length==undefined || sources.source.length==0){
								$("#ajaxLoaderSources").html('');
							
								return text="No sources returned for this query";
							}
							$("#sourcesDiv").html(regReq+"<br/>"+
									//write navigation for left and right if rows specified
									writeSourcesObject.writeNavigationText(sources) +
									writeSourcesObject.getSourcesTable(sources));
							
							
							
						});


				});